#include <mqueue.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h>
int main(int argc, char** argv)
{
    mqd_t mqd;
    void* ptr;
    size_t len;
    unsigned int  prio;
    
    if(argc != 4){
        printf("Give me argument\n");
    }
    
    len = atoi(argv[2]);
    prio = atoi(argv[3]);
    
    mqd = mq_open(argv[1], O_WRONLY);
    

    ptr = (char*)calloc(len, sizeof(char));
    
    mq_send(mqd, (char*)ptr, len, prio);
    
    exit(0);
}
